const users = require("../sql/users");
const sql = require('../sql/mysql')
const jwt = require("jsonwebtoken");

module.exports = (req,res)=>{
    // req.fields.roles = JSON.parse(req.fields.roles);
    sql.add(users,req.fields).then(()=>{
        res.send({
            code:0,
            msg:"添加成功"
        })
    }) 
}